/*
 * Form validation */

$(document).ready(function(){
	
	$('#ps-form').validate({
	rules: {
	  descricao: {
	    required: true,
	  },
	  ano: {
	    required: true,
	    number: true,
	    max: 2100,
	    min: 2012,
	  },
	},
	highlight: function(label) {
		$(label).closest('.control-group').addClass('error');
	    },
	  });
});
